# -*- coding: utf-8 -*-
# @Time    : 2019/10/14 10:47
# @Author  : LiHaowen
# @Email   : lihaowen2017@163.com
# @File    : type_object_class.py

a = 1
b = "abc"
print(type(1))  # type返回对象的类型；生成一个类 <class 'int'>
print(type(int))  # <class 'type'>
print(type(b))
print(type(str))
#  type -> int -> 1
#  type -> class -> obj
#  object 是最顶层基类
#  type是一个类， 同时type也是一个对象


class Student:
    pass


class MyStudent(Student):
    pass


stu = Student()
print(type(stu))
print(type(Student))
print(int.__bases__)
print(str.__bases__)
print(Student.__bases__)
print(MyStudent.__bases__)
print(type.__bases__)
print(object.__bases__)
print(type(object))
